Skip to content

QueryUnescape the tlsConfig name during DSN parsing. #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2016

Conversation

Carrotman42
Copy link
Contributor

Also add unit test.

Before this change, calling RegisterTLSConfig with a key that is invalid in a URL doesn't work. This change fixes the issue by unescaping the TLS config name during DSN parsing.

@julienschmidt
Copy link
Member

Please make an entry to the AUTHORS file

@Carrotman42
Copy link
Contributor Author

Done.

@julienschmidt
Copy link
Member

Thank you!
LGTM

julienschmidt added a commit that referenced this pull request Jan 6, 2016
QueryUnescape the tlsConfig name during DSN parsing.
@julienschmidt julienschmidt merged commit c9c5955 into go-sql-driver:master Jan 6, 2016
@julienschmidt julienschmidt added this to the v1.3 milestone Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants